/**
 * Project Name:springmgw Maven Webapp
 * File Name:ReceiveMessage.java
 * Package Name:com.geng.spring4.model
 * Date:2015年3月13日下午2:36:38
 * Copyright (c) 2015, 上海理想信息产业（集团） All Rights Reserved.
 *
*/

package com.geng.spring4.model;



import com.thoughtworks.xstream.annotations.XStreamAlias;

/**
 * ClassName:ReceiveMessage <br/>
 * Function: TODO ADD FUNCTION. <br/>
 * Reason:	 TODO ADD REASON. <br/>
 * Date:     2015年3月13日 下午2:36:38 <br/>
 * @author   GengHongChuang
 * @version  
 * @since    JDK 1.6
 * @see 	 
 */
@XStreamAlias("xml")
public class ReceiveMessage {
    @XStreamAlias("MsgId")
    private String msgId ;                              //消息IDaa
    
    @XStreamAlias("ToUserName")
    private String toUser;                              //平台OPENID
    
    @XStreamAlias("FromUserName")
    private String openId;                              //用户OPENID

    @XStreamAlias("MsgType")
    private MsgType msgType;                            //消息类型,event,text,link,location...
    
    @XStreamAlias("Content")
    private String content;                             //用户输入内容        

    @XStreamAlias("CreateTime")
    private long createTime;
    
    @XStreamAlias("EventKey")
    private String eventId;

    @XStreamAlias("Event")
    private String eventType;
    

    @XStreamAlias("PicUrl")
    private String picUrl;          //图片地址
    
    @XStreamAlias("Location_X")
    private String x;
    
    @XStreamAlias("Location_Y")
    private String y;

    @XStreamAlias("Label")
    private String label;

    @XStreamAlias("UserInfo")
    private String userInfo;
    
    @XStreamAlias("Source")
    private String source;          // 1=坐席发起
    
    @XStreamAlias("LimitOprTime")
    private String limitOprTime;    // 限制操作时间
    

    @XStreamAlias("LimitErrorCount")
    private String limitErrorCount; // 限制操作次数
    
    
    
    public String getMsgId() {
        return msgId;
    }



    public void setMsgId(String msgId) {
        this.msgId = msgId;
    }



    public String getToUser() {
        return toUser;
    }



    public void setToUser(String toUser) {
        this.toUser = toUser;
    }



    public String getOpenId() {
        return openId;
    }



    public void setOpenId(String openId) {
        this.openId = openId;
    }



    public MsgType getMsgType() {
        return msgType;
    }



    public void setMsgType(MsgType msgType) {
        this.msgType = msgType;
    }



    public String getContent() {
        return content;
    }



    public void setContent(String content) {
        this.content = content;
    }



    public long getCreateTime() {
        return createTime;
    }



    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }



    public String getEventId() {
        return eventId;
    }



    public void setEventId(String eventId) {
        this.eventId = eventId;
    }



    public String getEventType() {
        return eventType;
    }



    public void setEventType(String eventType) {
        this.eventType = eventType;
    }



    public String getPicUrl() {
        return picUrl;
    }



    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }



    public String getX() {
        return x;
    }



    public void setX(String x) {
        this.x = x;
    }



    public String getY() {
        return y;
    }



    public void setY(String y) {
        this.y = y;
    }



    public String getLabel() {
        return label;
    }



    public void setLabel(String label) {
        this.label = label;
    }



    public String getUserInfo() {
        return userInfo;
    }



    public void setUserInfo(String userInfo) {
        this.userInfo = userInfo;
    }



    public String getSource() {
        return source;
    }



    public void setSource(String source) {
        this.source = source;
    }



    public String getLimitOprTime() {
        return limitOprTime;
    }



    public void setLimitOprTime(String limitOprTime) {
        this.limitOprTime = limitOprTime;
    }



    public String getLimitErrorCount() {
        return limitErrorCount;
    }



    public void setLimitErrorCount(String limitErrorCount) {
        this.limitErrorCount = limitErrorCount;
    }



    public enum MsgType{
        text, image, voice, video, location, link, event
    }



    @Override
    public String toString() {
        return "ReceiveMessage [msgId=" + msgId + ", toUser=" + toUser
                + ", openId=" + openId + ", msgType=" + msgType + ", content="
                + content + ", createTime=" + createTime + ", eventId="
                + eventId + ", eventType=" + eventType + ", picUrl=" + picUrl
                + ", x=" + x + ", y=" + y + ", label=" + label + ", userInfo="
                + userInfo + ", source=" + source + ", limitOprTime="
                + limitOprTime + ", limitErrorCount=" + limitErrorCount + "]";
    }
    

}
